﻿using Orleans;
using Pay.Model;
using Pay.Model.Dto;
using Pay.Model.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Service
{
   public  interface IQRCodeService:IGrainWithStringKey
    {
        /// <summary>
        /// 根据Id获取
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<QRCodeInfo> GetById(long id);
        /// <summary>
        /// 获取分页
        /// </summary>
        /// <param name="searchAccount"></param>
        /// <param name="timeBegin"></param>
        /// <param name="timeEnd"></param>
        /// <param name="offset"></param>
        /// <param name="rows"></param>
        /// <returns></returns>
        Task<IPagedOutput<QRCodeOutPut>> GetPage(string searchAccount, DateTime? timeBegin = null, DateTime? timeEnd = null, int offset = 10, int rows = 1);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<bool> Delete(QRCodeInfo model);
    }
}
